package com.qfedu.meidijiaju.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.crypto.Data;
import java.time.LocalDateTime;
import java.util.Date;

@lombok.Data
public class User {
    @ApiModelProperty("用户表编号")
    private int id;
    @ApiModelProperty("用户名")
    private String name;
    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("地址")
    private String address;
    @ApiModelProperty("性别")
    private String sex;
    @ApiModelProperty("生日")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    @ApiModelProperty("简介")
    private String info;
    @ApiModelProperty("照片路径")
    private String img;

}
